package com.cnhis.cloudhealth.clidoctorweb.clireturnadvice;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.jboss.resteasy.logging.Logger;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cnhis.cloudhealth.clinical.clidoctor.clireturnadvice.service.ICliReturnAdvice;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import java.util.HashMap;

@Path("clireturnadvice")
@Component
public class CliReturnAdviceRest {
	Logger log = Logger.getLogger(CliReturnAdviceRest.class); 
	@Reference
	private ICliReturnAdvice cliReturnAdvice;
	
	/* ScriptId(1555) */
	/* Description(用于判断是否有可以作废医嘱，即是否有结帐后可以退费的单据) */
	/**
	 * 
	 * @param lVAF06 就诊id
	 * @param lBCE01 操作者或医师id
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@POST
	@Path("judgereturnadvice")
	@Produces({ MediaType.APPLICATION_JSON })
	public ModelVo judgeReturnAdvice(@FormParam("lVAF06") int lVAF06,@FormParam("lBCE01") int lBCE01)throws Exception{
		HashMap map  = new HashMap();
		map.put("lVAF06", lVAF06);
		map.put("lBCE01", lBCE01);
		return cliReturnAdvice.judgeReturnAdvice(map);
	}
}
